package objects.cluster;

import objects.ObjectCodes;

import com.google.gson.Gson;

public class ClusterLoginData implements ObjectCodes{
	public String host;
	public String user;
	public String pass;
	
	public ClusterLoginData() {} 
	
	public ClusterLoginData(String h, String u, String p)
	{
		this.host = h;
		this.user = u;
		this.pass = p;
	}
	
	public String toString()
	{
		return CLU_LOGIN+"|"+ new Gson().toJson(this);
	}
	
	public static ClusterLoginData fromJson(String json)
	{
		return new Gson().fromJson(json,ClusterLoginData.class);
	}

}
